@extends('layouts.admin')


@section('content')
    <div class="row">

    <h1 class="text-center" >电影归档</h1>

    {!! Form::open(['route' => 'movie.store', 'method' => 'post']) !!}
    {!! Form::select('epId[]', $episodes , null , ['class' => 'form-control','id'=>'epList','multiple']) !!}

    {!! Form::submit('Submit', ['class' => 'form-control btn btn-danger']) !!}
    {!! Form::close() !!}

    </div>
<div class="row">
    <h1>movie has only one episode</h1>
    <ul>
        @foreach($episodes as $key=>$value)
            <hr>
            <li>
            <strong>{{$key}}</strong>
            <i>{{$value}}</i>
            <a href="{{action('MovieController@smartCreate',compact('value','key'))}}" target="_blank">创建movie</a>
            </li>
        @endforeach
    </ul>





</div>
@endsection

@section('scripts')
    <script type="text/javascript">


    </script>
@endsection
